package in.iqing.module.download;

import com.lidroid.xutils.db.annotation.Column;
import com.lidroid.xutils.db.annotation.Id;
import com.lidroid.xutils.db.annotation.NoAutoIncrement;
import com.lidroid.xutils.db.annotation.Table;

import java.io.Serializable;

/**
 * Created by ZuoShu on 2015/7/16.
 */
@Table(name = "content_task")
public class ContentTask implements Serializable {
    public static final int TYPE_STRING = 0;
    public static final int TYPE_IMAGE = 1;
    @Id
    @Column(column = "id")
    private int id;

    @Column(column = "book_id")
    private int bookId;

    @Column(column = "volume_id")
    private int volumeId;

    @Column(column = "chapter_id")
    private int chapterId;

    // STRING | IMAGE
    @Column(column = "type")
    private int type;

    // IMAGE url
    @Column(column = "url")
    private String url;

    @Column(column = "save_path")
    private String savePath;

    @Column(column = "finish")
    private boolean finish;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getBookId() {
        return bookId;
    }

    public void setBookId(int bookId) {
        this.bookId = bookId;
    }

    public int getVolumeId() {
        return volumeId;
    }

    public void setVolumeId(int volumeId) {
        this.volumeId = volumeId;
    }

    public int getChapterId() {
        return chapterId;
    }

    public void setChapterId(int chapterId) {
        this.chapterId = chapterId;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getSavePath() {
        return savePath;
    }

    public void setSavePath(String savePath) {
        this.savePath = savePath;
    }

    public boolean isFinish() {
        return finish;
    }

    public void setFinish(boolean finish) {
        this.finish = finish;
    }
}
